<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>详情页 - 野子英语</title>
  <meta name="description" content="详情页 - 野子英语" />
  <meta
    name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1"
  />
  <link rel="shortcut icon" type="image/x-icon" href="{% static '/images/favicon.ico' %}" />

  <!-- STYLES -->
  <link
    rel="stylesheet"
    href="{% static 'css/bootstrap.min.css' %}"
    type="text/css"
    media="all"
  />
  <link
    rel="stylesheet"
    href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css"
    type="text/css"
  />
  <link rel="stylesheet" href="{% static 'css/slick.css' %}" type="text/css" media="all" />
  <link
    rel="stylesheet"
    href="{% static 'css/simple-line-icons.css' %}"
    type="text/css"
    media="all"
  />
  <link rel="stylesheet" href="{% static 'css/style.css' %}" type="text/css" media="all" />
</head>

<body>
<!-- preloader -->
<div id="preloader">
  <div class="book">
    <div class="inner">
      <div class="left"></div>
      <div class="middle"></div>
      <div class="right"></div>
    </div>
    <ul>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </div>
</div>

<!-- site wrapper -->
<div class="site-wrapper">
  <!-- header -->
  <header class="header">
    <nav class="navbar navbar-expand-lg bg-body-tertiary">
      <div class="container-xl">
        <a class="navbar-brand" href="#">野子英语</a>
        <button class="navbar-toggler icon-button" type="button" data-bs-toggle="collapse"
                data-bs-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
          <span class="burger-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
          <ul class="navbar-nav me-auto mb-2 mb-lg-0">
            <li class="nav-item">
              <a class="nav-link" href="/index">首页</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="../ielts">雅思</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/TOEFL">TOEFL</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/master">考研英语</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/TEM">TEM4/TEM8</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/CET">CET4/CET6</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/BEC">BEC</a>
            </li>
          </ul>
          <div class="header-right">
            <div class="qrcode">
              <img src="{% static 'images/qrcode.png' %}" alt="">
            </div>
            <ul class="social-icons list-unstyled list-inline mb-0">
              <li class="list-inline-item">
                <a href="#"><i class="fa-brands fa-weixin"></i></a>
              </li>
              <li class="list-inline-item">
                <a href="https://space.bilibili.com/37796585" target="_blank">
                  <i class="fa-brands fa-bilibili"></i></a>
              </li>
            </ul>
            <div class="header-buttons">
              <button class="search icon-button">
                <i class="icon-magnifier"></i>
              </button>
            </div>
          </div>
        </div>
      </div>
    </nav>
  </header>


  <!-- section main content -->
  <section class="main-content mt-3">
    <div class="container-xl">
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          {% for blog in blogs %}
            <li class="breadcrumb-item"><a href="/index">{{ blog.classes }}</a></li>
            <li class="breadcrumb-item active" aria-current="page">
              {{ blog.title }}
            </li>
          {% endfor %}
        </ol>
      </nav>

      <div class="row gy-4">
        <div class="col-lg-8">
          <!-- post single -->
          <div class="post post-single">
            <!-- post header -->
            <div class="post-header">
              <h1 class="title mt-0 mb-3">
                <!-- 标题名渲染 -->
                {% for blog in blogs %}
                  {{ blog.title }}

                  </h1>
                  <ul class="meta list-inline mb-0">
                    <!-- 日期渲染 -->

                    <li class="list-inline-item">{{ blog.publish_date }}</li>

                  </ul>
                  </div>
                  <!-- 文章渲染 -->
                  {{ blog.content|safe }}
                  </div>
                {% endfor %}

        </div>
        <div class="col-lg-4">
          <!-- sidebar -->
          <div class="sidebar">
            <!-- widget popular posts -->
            <div class="widget rounded">
              <div class="widget-header text-center">
                <h3 class="widget-title">推荐阅读</h3>
                <img src="{% static 'images/wave.svg' %}" class="wave" alt="wave" />
              </div>
              <div class="widget-content">
                <!-- 推荐阅读板块，循环以下数据即可 -->
                {% for hot in hots %}
                  <div class="post post-list-sm circle">
                    <div class="thumb circle">
                      <a href="/{{ hot.article_id }}">
                        <div class="inner">
                          <img
                            style="width: 60px;height:60px;"
                            src="/media/{{ hot.avatar }}"
                            alt="post-title"
                          />
                        </div>
                      </a>
                    </div>
                    <div class="details clearfix">
                      <h6 class="post-title my-0">
                        <a href="/{{ hot.article_id }}"
                        >{{ hot.title }}</a
                        >
                      </h6>
                      <ul class="meta list-inline mt-1 mb-0">
                        <li class="list-inline-item">{{ hot.publish_date }}</li>
                      </ul>
                    </div>
                  </div>
                {% endfor %}

              </div>
            </div>


            <!-- widget advertisement -->
            <div class="widget no-container rounded text-md-center">
              <span class="ads-title">- 商业广告 -</span>
              <a href="#" class="widget-ads">
                <img src="{% static 'images/ads/ad-360.png' %}" alt="Advertisement" />
              </a>
            </div>
          </div>
        </div>
      </div>
  </section>

  <!-- footer -->
  <footer>
    <div class="container-xl">
      <div class="footer-inner">
        <div class="row d-flex align-items-center gy-4">
          <div class="col-md-8">
                <span class="copyright">
                  Copyright &copy; 2023. YeZi English All rights reserved.
                  <a target="_blank" href="/admin/">
                    &nbsp;野子英语
                  </a>
                </span>
          </div>

          <!-- go to top button -->
          <div class="col-md-4">
            <a href="#" id="return-to-top" class="float-md-end">
              <i class="icon-arrow-up"></i>返回顶部
            </a>
          </div>
        </div>
      </div>
    </div>
  </footer>
</div>
<!-- end site wrapper -->

<!-- search popup area -->
<div class="search-popup">
  <!-- close button -->
  <button type="button" class="btn-close" aria-label="Close"></button>
  <!-- content -->
  <div class="search-content">
    <div class="text-center">
      <h3 class="mb-4 mt-0">Press ESC to close</h3>
    </div>
    <!-- form -->
    <form class="d-flex search-form" method="get" action="{% url 'haystack_search' %}" target="_blank">
      <input class="form-control me-2" type="text" name="q" placeholder="请输入您要搜索的内容" aria-label="Search" />
      <button class="btn btn-default btn-lg" type="submit">
        <i class="icon-magnifier"></i>
      </button>
    </form>
  </div>
</div>

<!-- canvas menu -->
<div class="canvas-menu d-flex align-items-end flex-column">
  <!-- close button -->
  <button type="button" class="btn-close" aria-label="Close"></button>

  <!-- logo -->
  <div class="logo">
    <img src="{% static 'images/coco.jpg' %}" alt="yezi" />
  </div>

  <!-- menu -->
  <nav>
    <ul class="vertical-menu">
      <li><a href="/index">首页</a></li>
      <li><a href="/ielts">雅思</a></li>
      <li><a href="/TOEFL">TOEFL</a></li>
      <li><a href="/master">考研英语</a></li>
      <li><a href="/TEM">TEM4/TEM8</a></li>
      <li><a href="/CET">CET4/CET6</a></li>
      <li><a href="/BEC">BEC</a></li>
      <!-- <li>
        <a href="#">Pages</a>
        <ul class="submenu">
          <li><a href="category.html">Category</a></li>
          <li><a href="blog-single.html">Blog Single</a></li>
          <li><a href="blog-single-alt.html">Blog Single Alt</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </li> -->
      <li><a href="contact.html">联系我</a></li>
    </ul>
  </nav>

  <!-- social icons -->

</div>

<!-- JAVA SCRIPTS -->
<script src="{% static 'js/jquery.min.js' %}"></script>
<script src="{% static 'js/popper.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/slick.min.js' %}"></script>
<script src="{% static 'js/jquery.sticky-sidebar.min.js' %}"></script>
<script src="{% static 'js/custom.js' %}"></script>

</body>
</html>
